package com.lagou.homework.stage01.module02.Task3;

/**
 * 通话时间套裁类
 */
public class MinPackage extends Package implements Call{
    private int min;
    private int message;

    public MinPackage() {
    }

    public MinPackage(double money, int min, int message) {
        super(money);
        setMin(min);
        setMessage(message);
    }

    public int getMin() {
        return min;
    }

    public void setMin(int min) {
        this.min = min;
    }

    public int getMessage() {
        return message;
    }

    public void setMessage(int message) {
        this.message = message;
    }

    @Override
    public void show(){
        System.out.println("通话时长："+getMin());
        System.out.println("短信条数："+getMessage());
        System.out.println("每月资费："+getMoney());
    }

    @Override
    public void phoneSer(int min, String type) {
        System.out.println("通话时长："+min);
        System.out.println("手机卡类型为："+type);
    }
}
